// npm i @types/express
import express from 'express'
import { dataStore } from './data'
const app = express()

app.get('/', (req, res) => {
  //res.end('服务器响应结果 -> hello world!')
  res.json(dataStore.list)
})

app.listen(8080, () => {
  console.log("nodejs server start...")
})

